import { request } from '@/utils/request';
import type { BaseResponse } from '@/api/model/detailModel';

export function getMenus(token: string): Promise<BaseResponse | null> {
  const data = {
    token,
  };

  return request.post<BaseResponse>({
    url: '/index/menus',
    data,
  });
}
